package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Letter;
import cn.wolfcode.trip.base.query.LetterQueryObject;
import java.util.List;

public interface LetterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Letter record);

    Letter selectByPrimaryKey(Long id);

    List<Letter> selectAll();

    int updateByPrimaryKey(Letter record);

    int notletters(Long userId);

    List<Letter> query(LetterQueryObject qo);

    void updateIsViewed(Long userId);
}